home *** CD-ROM | disk | FTP | other *** search
/ Young Minds / Young Minds Interactive CD-ROM.ISO / umoria / xenix.pat < prev    next >
Encoding:
Text File  |  1988-07-28  |  48.7 KB  |  1,804 lines

  1.  
  2. This (obsolete) XENIX patch is for umoria 4.85.  It is not guaranteed to work
  3. for umoria 4.87, but should provide a good starting point.
  4.  
  5. You will probably have better luck if you use the Int16bit.patch file first,
  6. and then reference this file if you still have problems.
  7.  
  8. Jim Wilson
  9. wilson@ji.Berkeley.EDU
  10.  
  11.  
  12. From ucbvax!agate!ig!uwmcsd1!leah!itsgw!batcomputer!cornell!rochester!ur-tut!sunybcs!boulder!hao!oddjob!gargoyle!jpusa1!news Thu Jan 21 12:54:27 PST 1988
  13. Status: RO
  14.  
  15. Article 725 of comp.sources.bugs:
  16. Path: ucbvax!agate!ig!uwmcsd1!leah!itsgw!batcomputer!cornell!rochester!ur-tut!sunybcs!boulder!hao!oddjob!gargoyle!jpusa1!news
  17. >From: news@jpusa1.UUCP (usenet)
  18. Newsgroups: comp.sources.bugs,rec.games.moria
  19. Subject: xenix moria again
  20. Message-ID: <661@jpusa1.UUCP>
  21. Date: 21 Jan 88 07:43:08 GMT
  22. Reply-To: stu@jpusa1.UUCP (Stu Heiss)
  23. Organization: JPUSA - Chicago, IL
  24. Lines: 13
  25. Xref: ucbvax comp.sources.bugs:725 rec.games.moria:180
  26.  
  27. One detail I forgot concerning the patch I posted for moria to
  28. run on xenix is potential problems with ld.  If you have the
  29. 2.2 os update, your ld is broken.  I never noticed any trouble
  30. unitil I ported moria to xenix but there is a known (to sco) bug
  31. in the ld that comes with the 2.2 update.  You do need this ld
  32. to link the kernel, but get out the ld that comes with 2.1.4
  33. to link moria.  btw, I'm still trying to get nethack to link
  34. properly, although it is very low on the priority list just now.
  35. If anyone has managed to come up with a workaround, I'd like
  36. to hear from you.  If your nethack cordumps when you select 'W'
  37. for wizard, you have the same problem I do.
  38. --
  39. Stu Heiss {gargoyle,ihnp4}!jpusa1!stu
  40.  
  41.  
  42. From ucbvax!decvax!tektronix!tekgen!tekred!games-request Thu Jan 21 12:53:35 PST 1988
  43. Status: RO
  44.  
  45. Article 263 of comp.sources.games:
  46. Path: ucbvax!decvax!tektronix!tekgen!tekred!games-request
  47. >From: games-request@tekred.TEK.COM
  48. Newsgroups: comp.sources.games
  49. Subject: v03i064:  umoria - diffs for Xenix V
  50. Message-ID: <2088@tekred.TEK.COM>
  51. Date: 20 Jan 88 18:35:15 GMT
  52. Sender: billr@tekred.TEK.COM
  53. Lines: 1746
  54. Approved: billr@tekred.TEK.COM
  55.  
  56. Submitted by: jpusa1!stu@ihnp4 (Stu Heiss)
  57. Comp.sources.games: Volume 3, Issue 64
  58. Archive-name: umoria/xenix_diff
  59.  
  60.     [Here are diffs to get umoria running on Xenix and other
  61.     'sizeof int = 16' os'es.  This is being posted here at
  62.     the request of the submitter so it can be part of the
  63.     archive (he also posted this to comp.sources.bugs).  -br]
  64.  
  65. #! /bin/sh
  66. # This is a shell archive.  Remove anything before this line, then unpack
  67. # it by saving it into a file and typing "sh file".  To overwrite existing
  68. # files, type "sh file -c".  You can also feed this as standard input via
  69. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  70. # will see the following message at the end:
  71. #        "End of shell archive."
  72. # Contents:  Makefile clashes.h diffs.xenix
  73. # Wrapped by billr@tekred on Wed Jan 20 10:33:20 1988
  74. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  75. if test -f Makefile -a "${1}" != "-c" ; then
  76.   echo shar: Will not over-write existing file \"Makefile\"
  77. else
  78. echo shar: Extracting \"Makefile\" \(3830 characters\)
  79. sed "s/^X//" >Makefile <<'END_OF_Makefile'
  80. X# BINDIR is the directory where the moria binary while be put
  81. X# LIBDIR is where the other files (scoreboard, news, hours) will be put
  82. X#  LIBDIR must be the same directory defined in config.h
  83. XBINDIR = /usr/local/games
  84. XLIBDIR = /usr/local/lib/moria
  85. X
  86. XDEFS = -DXENIX -DUSG -DKEY_BINDINGS=ROGUE_LIKE -DBUGGY_CURSES
  87. XOPTIM= # -O
  88. XMODEL= -Mel2
  89. XCFLAGS = $(MODEL) $(OPTIM) $(DEFS)
  90. XLDFLAGS = $(MODEL) -F 4000
  91. XCC=cc
  92. XCCL=cc -LARGE
  93. XSEG= # -SEG 1000
  94. XLIBS= -lm -lcurses -ltermcap
  95. X#LIBS= -lm -lcurses -ltermcap -lx
  96. X
  97. XSRCS = main.c misc1.c misc2.c store1.c files.c io.c create.c desc.c\
  98. X    generate.c sets.c dungeon.c creature.c death.c eat.c help.c magic.c\
  99. X    potions.c prayer.c save.c staffs.c wands.c scrolls.c spells.c\
  100. X    wizard.c store2.c signals.c moria1.c moria2.c monsters.c\
  101. X    treasure1.c treasure2.c variables.c
  102. X
  103. XxOBJS = main.o misc1.o misc2.o store1.o files1.o files2.o io.o create1.o create2.o desc.o\
  104. X    generate.o sets.o dungeon.o creature.o death.o eat.o help.o magic.o\
  105. X    potions.o prayer.o save.o staffs.o wands.o scrolls.o spells.o\
  106. X    wizard1.o wizard2.o store2.o signals.o moria1.o moria2.o monsters.o\
  107. X     treasure1.o treasure2.o variables.o
  108. X
  109. XdOBJS = monsters.o treasure1.o treasure2.o variables.o
  110. X
  111. XcOBJS = main.o misc1.o misc2.o store1.o files1.o files2.o io.o create1.o create2.o desc.o\
  112. X    generate.o sets.o dungeon.o creature.o death.o eat.o help.o magic.o\
  113. X    potions.o prayer.o save.o staffs.o wands.o scrolls.o spells.o\
  114. X    wizard1.o wizard2.o store2.o signals.o moria1.o moria2.o
  115. X
  116. X#OBJS= /lib/Lsignal.o $(dOBJS) $(cOBJS)
  117. XOBJS=  $(xOBJS)
  118. X
  119. Xmoria : $(OBJS)
  120. X    $(CC) -o moria $(LDFLAGS) $(OBJS) $(SEG) $(LIBS)
  121. X
  122. Xmonsters.o:    monsters.c
  123. X    $(CC) $(CFLAGS) -ND monsters -c monsters.c
  124. X
  125. Xtreasure1.o:    treasure1.c
  126. X    $(CC) $(CFLAGS) -ND treasure1 -c treasure1.c
  127. X
  128. Xtreasure2.o:    treasure2.c
  129. X    $(CC) $(CFLAGS) -ND treasure2 -c treasure2.c
  130. X
  131. Xvariables.o:    variables.c
  132. X    $(CC) $(CFLAGS) -ND variables -c variables.c
  133. X
  134. Xmisc1.o:    misc1.c
  135. X    $(CCL) $(CFLAGS) -c misc1.c
  136. X
  137. Xfiles1.o:    files.c
  138. X    cc $(CFLAGS) -c -DPASS1 files.c
  139. X    mv files.o files1.o
  140. X
  141. Xfiles2.o:    files.c
  142. X    cc $(CFLAGS) -c files.c
  143. X    mv files.o files2.o
  144. X
  145. Xcreate1.o:    create.c
  146. X    cc $(CFLAGS) -c -DPASS1 create.c
  147. X    mv create.o create1.o
  148. X
  149. Xcreate2.o:    create.c
  150. X    cc $(CFLAGS) -c create.c
  151. X    mv create.o create2.o
  152. X
  153. Xwizard1.o:    wizard.c
  154. X    cc $(CFLAGS) -c -DPASS1 wizard.c
  155. X    mv wizard.o wizard1.o
  156. X
  157. Xwizard2.o:    wizard.c
  158. X    cc $(CFLAGS) -c wizard.c
  159. X    mv wizard.o wizard2.o
  160. X
  161. Xlintout : $(SRCS)
  162. X    lint -DUSG $(SRCS) -lm -lcurses -ltermcap > lintout
  163. X
  164. XTAGS : $(SRCS)
  165. X    ctags -x $(SRCS) > TAGS
  166. X
  167. Xinstall:
  168. X    cp moria $(BINDIR)
  169. X    cp Moria_hours $(LIBDIR)
  170. X    cp Moria_news $(LIBDIR)
  171. X    cp Highscores $(LIBDIR)
  172. X    chmod 4511 $(BINDIR)/moria
  173. X    chmod 644 $(LIBDIR)/Highscores
  174. X    chmod 444 $(LIBDIR)/Moria_news
  175. X    chmod 444 $(LIBDIR)/Moria_hours
  176. X    chmod 555 $(LIBDIR)
  177. X
  178. Xcreate.o: constants.h types.h externs.h
  179. Xcreature.o: constants.h types.h externs.h
  180. Xdeath.o: config.h constants.h types.h externs.h
  181. Xdesc.o: constants.h types.h externs.h
  182. Xdungeon.o: constants.h types.h externs.h
  183. Xeat.o: constants.h types.h externs.h
  184. Xfiles.o: config.h constants.h types.h externs.h
  185. Xgenerate.o: constants.h types.h externs.h
  186. Xhelp.o: constants.h types.h externs.h
  187. Xio.o: constants.h types.h externs.h
  188. Xmagic.o: constants.h types.h externs.h
  189. Xmain.o: constants.h types.h
  190. Xmisc1.o: constants.h types.h externs.h
  191. Xmisc2.o: config.h constants.h types.h externs.h
  192. Xmoria1.o: constants.h types.h externs.h
  193. Xmoria2.o: constants.h types.h externs.h
  194. Xpotions.o: constants.h types.h externs.h
  195. Xprayer.o: constants.h types.h externs.h
  196. Xsave.o: constants.h types.h externs.h
  197. Xscrolls.o: constants.h types.h externs.h
  198. Xsets.o: constants.h
  199. Xsignals.o: constants.h types.h externs.h
  200. Xspells.o: constants.h types.h externs.h
  201. Xstaffs.o: constants.h types.h externs.h
  202. Xstore1.o: constants.h types.h externs.h
  203. Xstore2.o: constants.h types.h externs.h
  204. Xwands.o: constants.h types.h externs.h
  205. Xwizard.o: constants.h types.h externs.h
  206. END_OF_Makefile
  207. if test 3830 -ne `wc -c <Makefile`; then
  208.     echo shar: \"Makefile\" unpacked with wrong size!
  209. fi
  210. # end of overwriting check
  211. fi
  212. if test -f clashes.h -a "${1}" != "-c" ; then
  213.   echo shar: Will not over-write existing file \"clashes.h\"
  214. else
  215. echo shar: Extracting \"clashes.h\" \(4801 characters\)
  216. sed "s/^X//" >clashes.h <<'END_OF_clashes.h'
  217. X#define aggravate_monster _fix0
  218. X#define background_type _fix1
  219. X#define build_type1 _fix2
  220. X#define build_type2 _fix3
  221. X#define build_type3 _fix4
  222. X#define change_name _fix5
  223. X#define change_speed _fix6
  224. X#define change_stat_factor _fix7
  225. X#define char_tmp _fix8
  226. X#define compact_monsters _fix9
  227. X#define confuse _fix10
  228. X#define confuse_monster _fix11
  229. X#define confused _fix12
  230. X#define corr_floor1 _fix13
  231. X#define corr_floor2 _fix14
  232. X#define corr_floor3 _fix15
  233. X#define creature_type _fix16
  234. X#define creatures _fix17
  235. X#define critical_blow _fix18
  236. X#define cur_char1 _fix19
  237. X#define de_statp _fix20
  238. X#define delete_1 _fix21
  239. X#define delete_monster _fix22
  240. X#define delete_object _fix23
  241. X#define destroy _fix24
  242. X#define destroy2 _fix25
  243. X#define detect_evil _fix26
  244. X#define detect_inv2 _fix27
  245. X#define detect_invisible _fix28
  246. X#define detect_monsters _fix29
  247. X#define detect_object _fix30
  248. X#define detect_sdoor _fix31
  249. X#define detect_trap _fix32
  250. X#define detect_treasure _fix33
  251. X#define display_commands _fix34
  252. X#define display_cost _fix35
  253. X#define display_inventory _fix36
  254. X#define generate _fix37
  255. X#define haggle_commands _fix38
  256. X#define haggle_insults _fix39
  257. X#define history _fix40
  258. X#define in_statp _fix41
  259. X#define increase_insults _fix42
  260. X#define insert_inv _fix43
  261. X#define insert_str _fix44
  262. X#define insult_cur _fix45
  263. X#define insult_max _fix46
  264. X#define inven_carry _fix47
  265. X#define inven_check_num _fix48
  266. X#define inven_check_weight _fix49
  267. X#define inven_ctr _fix50
  268. X#define inven_destroy _fix51
  269. X#define inven_drop _fix52
  270. X#define inventory _fix53
  271. X#define item_value _fix54
  272. X#define magic_spell _fix55
  273. X#define max_panel_rows _fix56
  274. X#define monster_death _fix57
  275. X#define monster_type _fix58
  276. X#define new_spells _fix59
  277. X#define next_to _fix60
  278. X#define next_to4 _fix61
  279. X#define object_ident _fix62
  280. X#define object_list _fix63
  281. X#define object_str _fix64
  282. X#define old_ptodam _fix65
  283. X#define original_commands _fix66
  284. X#define original_help _fix67
  285. X#define out_val _fix68
  286. X#define out_val1 _fix69
  287. X#define out_val2 _fix70
  288. X#define panel_col _fix71
  289. X#define panel_col_max _fix72
  290. X#define panel_col_min _fix73
  291. X#define panel_col_prt _fix74
  292. X#define panel_row _fix75
  293. X#define panel_row_max _fix76
  294. X#define panel_row_min _fix77
  295. X#define password1 _fix78
  296. X#define place_door _fix79
  297. X#define place_down_stairs _fix80
  298. X#define place_open_door _fix81
  299. X#define place_secret_door _fix82
  300. X#define place_streamer _fix83
  301. X#define place_stuck_door _fix84
  302. X#define player_exp _fix85
  303. X#define player_light _fix86
  304. X#define player_max_exp _fix87
  305. X#define player_saves _fix88
  306. X#define player_title _fix89
  307. X#define player_type _fix90
  308. X#define print_map _fix91
  309. X#define prt_comment1 _fix92
  310. X#define prt_comment2 _fix93
  311. X#define prt_comment3 _fix94
  312. X#define prt_comment4 _fix95
  313. X#define prt_comment5 _fix96
  314. X#define prt_constitution _fix97
  315. X#define prt_stat _fix98
  316. X#define purchase_haggle _fix99
  317. X#define put_misc1 _fix100
  318. X#define put_misc2 _fix101
  319. X#define randes_state _fix102
  320. X#define receive_offer _fix103
  321. X#define remove_curse _fix104
  322. X#define remove_fear _fix105
  323. X#define resist_heat _fix106
  324. X#define restore_level _fix107
  325. X#define rock_wall1 _fix108
  326. X#define rock_wall2 _fix109
  327. X#define rock_wall3 _fix110
  328. X#define rogue_like_commands _fix111
  329. X#define rogue_like_help _fix112
  330. X#define search_flag _fix113
  331. X#define search_off _fix114
  332. X#define search_on _fix115
  333. X#define set_1_2 _fix116
  334. X#define set_acid_affect _fix117
  335. X#define set_corrodes _fix118
  336. X#define set_lightning_destroy _fix119
  337. X#define signal_save_core _fix120
  338. X#define signal_save_no_core _fix121
  339. X#define sleep_monster _fix122
  340. X#define sleep_monsters1 _fix123
  341. X#define speed_monster _fix124
  342. X#define store_carry _fix125
  343. X#define store_check _fix126
  344. X#define store_check_num _fix127
  345. X#define store_create _fix128
  346. X#define store_ctr _fix129
  347. X#define store_inven _fix130
  348. X#define store_prt_gold _fix131
  349. X#define summon_monster _fix132
  350. X#define sustain_con _fix133
  351. X#define sustain_dex _fix134
  352. X#define sustain_int _fix135
  353. X#define sustain_str _fix136
  354. X#define sustain_wis _fix137
  355. X#define td_destroy _fix138
  356. X#define teleport _fix139
  357. X#define teleport_away _fix140
  358. X#define teleport_flag _fix141
  359. X#define teleport_monster _fix142
  360. X#define teleport_to _fix143
  361. X#define trap_lista _fix144
  362. X#define turn_undead _fix145
  363. X#define unlight_area _fix146
  364. X#define weight_limit _fix147
  365. X#define wizard_light _fix148
  366. X#define cbreak crmode
  367. X#define nocbreak nocrmode
  368. X#define saveterm savetty
  369. X#define resetterm resetty
  370. X#define change_character _fix149
  371. X#define change_stat _fix150
  372. X#define change_trap _fix151
  373. X#define create_character _fix152
  374. X#define create_food _fix153
  375. X#define disarm_all _fix154
  376. X#define disarm_trap _fix155
  377. X#define display_char _fix156
  378. X#define display_scores _fix157
  379. X#define display_store _fix158
  380. X#define insert_num _fix159
  381. X#define insert_store _fix160
  382. X#define place_boundary _fix161
  383. X#define place_broken_door _fix162
  384. X#define store_destroy _fix163
  385. X#define summon_object _fix164
  386. X#define summon_undead _fix165
  387. END_OF_clashes.h
  388. if test 4801 -ne `wc -c <clashes.h`; then
  389.     echo shar: \"clashes.h\" unpacked with wrong size!
  390. fi
  391. # end of overwriting check
  392. fi
  393. if test -f diffs.xenix -a "${1}" != "-c" ; then
  394.   echo shar: Will not over-write existing file \"diffs.xenix\"
  395. else
  396. echo shar: Extracting \"diffs.xenix\" \(35406 characters\)
  397. sed "s/^X//" >diffs.xenix <<'END_OF_diffs.xenix'
  398. XIndex: constants.h
  399. XRCS file: RCS/constants.h,v
  400. Xretrieving revision 1.1
  401. Xdiff -c3 -r1.1 constants.h
  402. X*** /tmp/,RCSt1a02655    Mon Jan 18 10:27:46 1988
  403. X--- constants.h    Sun Dec  6 14:54:41 1987
  404. X***************
  405. X*** 1,3
  406. X  /*Note to the Wizard:                                            */
  407. X  /*       Tweaking these constants can *GREATLY* change the game. */
  408. X  /*       Two years of constant tuning have generated these       */
  409. X
  410. X--- 1,4 -----
  411. X+ #include "clashes.h"
  412. X  /*Note to the Wizard:                                            */
  413. X  /*       Tweaking these constants can *GREATLY* change the game. */
  414. X  /*       Two years of constant tuning have generated these       */
  415. XIndex: create.c
  416. XRCS file: RCS/create.c,v
  417. Xretrieving revision 1.1
  418. Xdiff -c3 -r1.1 create.c
  419. X*** /tmp/,RCSt1a02660    Mon Jan 18 10:27:55 1988
  420. X--- create.c    Mon Dec  7 16:40:40 1987
  421. X***************
  422. X*** 13,18
  423. X  char *sprintf();
  424. X  #endif
  425. X
  426. X  /* Generates character's stats                -JWT-    */
  427. X  int get_stat()
  428. X  {
  429. X
  430. X--- 13,19 -----
  431. X  char *sprintf();
  432. X  #endif
  433. X
  434. X+ #ifdef PASS1
  435. X  /* Generates character's stats                -JWT-    */
  436. X  int get_stat()
  437. X  {
  438. X***************
  439. X*** 39,44
  440. X    return(cur_stat);
  441. X  }
  442. X
  443. X
  444. X  /* Allows player to select a race            -JWT-    */
  445. X  int choose_race()
  446. X
  447. X--- 40,46 -----
  448. X    return(cur_stat);
  449. X  }
  450. X
  451. X+ #else /* PASS1 */
  452. X
  453. X  /* Allows player to select a race            -JWT-    */
  454. X  int choose_race()
  455. X***************
  456. X*** 305,311
  457. X    prt("Choose a class (? for Help):", 20, 2);
  458. X    do
  459. X      {
  460. X!       if (race[i].tclass & bit_array[j])
  461. X      {
  462. X        (void) sprintf(tmp_str, "%c) %s", k+97, class[j].title);
  463. X        put_buffer(tmp_str, m, l);
  464. X
  465. X--- 307,313 -----
  466. X    prt("Choose a class (? for Help):", 20, 2);
  467. X    do
  468. X      {
  469. X!       if (race[i].rtclass & bit_array[j])
  470. X      {
  471. X        (void) sprintf(tmp_str, "%c) %s", k+97, class[j].title);
  472. X        put_buffer(tmp_str, m, l);
  473. X***************
  474. X*** 437,439
  475. X    pause_exit(23, PLAYER_EXIT_PAUSE);
  476. X  }
  477. X
  478. X
  479. X--- 439,442 -----
  480. X    pause_exit(23, PLAYER_EXIT_PAUSE);
  481. X  }
  482. X
  483. X+ #endif /* PASS1 */
  484. XIndex: creature.c
  485. XRCS file: RCS/creature.c,v
  486. Xretrieving revision 1.1
  487. Xdiff -c3 -r1.1 creature.c
  488. X*** /tmp/,RCSt1a02665    Mon Jan 18 10:28:08 1988
  489. X--- creature.c    Wed Dec  9 11:52:05 1987
  490. X***************
  491. X*** 663,668
  492. X            prt_chp();
  493. X            break;
  494. X          case 19:    /*Lose experience  */
  495. X            msg_print("You feel your life draining away!");
  496. X            i = damroll(damstr) + (py.misc.exp / 100)*MON_DRAIN_LIFE;
  497. X            lose_exp(i);
  498. X
  499. X--- 663,670 -----
  500. X            prt_chp();
  501. X            break;
  502. X          case 19:    /*Lose experience  */
  503. X+           {
  504. X+           bigint_t m;
  505. X            msg_print("You feel your life draining away!");
  506. X            m = damroll(damstr) + (py.misc.exp / 100)*MON_DRAIN_LIFE;
  507. X            lose_exp(m);
  508. X***************
  509. X*** 664,671
  510. X            break;
  511. X          case 19:    /*Lose experience  */
  512. X            msg_print("You feel your life draining away!");
  513. X!           i = damroll(damstr) + (py.misc.exp / 100)*MON_DRAIN_LIFE;
  514. X!           lose_exp(i);
  515. X            break;
  516. X          case 20:    /*Aggravate monster*/
  517. X            (void) aggravate_monster(5);
  518. X
  519. X--- 666,673 -----
  520. X            {
  521. X            bigint_t m;
  522. X            msg_print("You feel your life draining away!");
  523. X!           m = damroll(damstr) + (py.misc.exp / 100)*MON_DRAIN_LIFE;
  524. X!           lose_exp(m);
  525. X            break;
  526. X            }
  527. X          case 20:    /*Aggravate monster*/
  528. X***************
  529. X*** 667,672
  530. X            i = damroll(damstr) + (py.misc.exp / 100)*MON_DRAIN_LIFE;
  531. X            lose_exp(i);
  532. X            break;
  533. X          case 20:    /*Aggravate monster*/
  534. X            (void) aggravate_monster(5);
  535. X            break;
  536. X
  537. X--- 669,675 -----
  538. X            m = damroll(damstr) + (py.misc.exp / 100)*MON_DRAIN_LIFE;
  539. X            lose_exp(m);
  540. X            break;
  541. X+           }
  542. X          case 20:    /*Aggravate monster*/
  543. X            (void) aggravate_monster(5);
  544. X            break;
  545. X***************
  546. X*** 752,758
  547. X  int *mm;
  548. X  {
  549. X    int i, j, newy, newx;
  550. X!   unsigned int movebits;
  551. X    int flag, tflag;
  552. X    int res;
  553. X    cave_type *c_ptr;
  554. X
  555. X--- 755,761 -----
  556. X  int *mm;
  557. X  {
  558. X    int i, j, newy, newx;
  559. X!   bitset_t movebits;
  560. X    int flag, tflag;
  561. X    int res;
  562. X    cave_type *c_ptr;
  563. X***************
  564. X*** 953,959
  565. X  int monptr;
  566. X  int *took_turn;
  567. X  {
  568. X!   unsigned int i;
  569. X    int j, k, y, x;
  570. X    int chance, thrown_spell;
  571. X    double r1;
  572. X
  573. X--- 956,962 -----
  574. X  int monptr;
  575. X  int *took_turn;
  576. X  {
  577. X!   bitset_t i;
  578. X    int j, k, y, x;
  579. X    int chance, thrown_spell;
  580. X    double r1;
  581. XIndex: death.c
  582. XRCS file: RCS/death.c,v
  583. Xretrieving revision 1.1
  584. Xdiff -c3 -r1.1 death.c
  585. X*** /tmp/,RCSt1a02670    Mon Jan 18 10:28:20 1988
  586. X--- death.c    Mon Dec  7 16:52:51 1987
  587. X***************
  588. X*** 174,180
  589. X    (void) strcpy(str3, fill_str(py.misc.tclass));
  590. X    (void) sprintf(str4, "Level : %d", (int)py.misc.lev);
  591. X    (void) strcpy(str4, fill_str(str4));
  592. X!   (void) sprintf(str5, "%d Exp", py.misc.exp);
  593. X    (void) strcpy(str5, fill_str(str5));
  594. X    (void) sprintf(str6, "%d Au", py.misc.au);
  595. X    (void) strcpy(str6, fill_str(str6));
  596. X
  597. X--- 174,180 -----
  598. X    (void) strcpy(str3, fill_str(py.misc.tclass));
  599. X    (void) sprintf(str4, "Level : %d", (int)py.misc.lev);
  600. X    (void) strcpy(str4, fill_str(str4));
  601. X!   (void) sprintf(str5, "%ld Exp", (long)py.misc.exp);
  602. X    (void) strcpy(str5, fill_str(str5));
  603. X    (void) sprintf(str6, "%d Au", py.misc.au);
  604. X    (void) strcpy(str6, fill_str(str6));
  605. X***************
  606. X*** 248,254
  607. X
  608. X
  609. X  /* Calculates the total number of points earned        -JWT-     */
  610. X! int total_points()
  611. X  {
  612. X    return (py.misc.max_exp + (100 * py.misc.max_lev));
  613. X  }
  614. X
  615. X--- 248,254 -----
  616. X
  617. X
  618. X  /* Calculates the total number of points earned        -JWT-     */
  619. X! long total_points()
  620. X  {
  621. X    return (py.misc.max_exp + (100 * py.misc.max_lev));
  622. X  }
  623. X***************
  624. X*** 265,271
  625. X      exit_game();
  626. X    clear_screen(0, 0);
  627. X
  628. X!   myscore.points = (long)total_points();
  629. X    myscore.dun_level = dun_level;
  630. X    myscore.lev = py.misc.lev;
  631. X    myscore.max_lev = py.misc.max_lev;
  632. X
  633. X--- 265,271 -----
  634. X      exit_game();
  635. X    clear_screen(0, 0);
  636. X
  637. X!   myscore.points = total_points();
  638. X    myscore.dun_level = dun_level;
  639. X    myscore.lev = py.misc.lev;
  640. X    myscore.max_lev = py.misc.max_lev;
  641. XIndex: eat.c
  642. XRCS file: RCS/eat.c,v
  643. Xretrieving revision 1.1
  644. Xdiff -c3 -r1.1 eat.c
  645. X*** /tmp/,RCSt1a02675    Mon Jan 18 10:28:28 1988
  646. X--- eat.c    Wed Dec  9 11:53:34 1987
  647. X***************
  648. X*** 6,12
  649. X  /* Eat some food...                    -RAK-    */
  650. X  eat()
  651. X  {
  652. X!   unsigned int i;
  653. X    int j, k, item_val;
  654. X    int redraw, ident;
  655. X    struct flags *f_ptr;
  656. X
  657. X--- 6,12 -----
  658. X  /* Eat some food...                    -RAK-    */
  659. X  eat()
  660. X  {
  661. X!   bitset_t i;
  662. X    int j, k, item_val;
  663. X    int redraw, ident;
  664. X    struct flags *f_ptr;
  665. XIndex: externs.h
  666. XRCS file: RCS/externs.h,v
  667. Xretrieving revision 1.1
  668. Xdiff -c3 -r1.1 externs.h
  669. X*** /tmp/,RCSt1a02680    Mon Jan 18 10:28:35 1988
  670. X--- externs.h    Wed Dec  9 11:42:38 1987
  671. X***************
  672. X*** 1,6
  673. X  extern int character_generated;  /* don't save score until char gen finished */
  674. X  extern int highscore_fd;    /* High score file descriptor */
  675. X! extern int player_max_exp;    /* Max exp possible    */
  676. X  extern char norm_state[STATE_SIZE];    /* Contains seed #     */
  677. X  extern char randes_state[STATE_SIZE];
  678. X  extern int randes_seed;        /* For encoding colors */
  679. X
  680. X--- 1,6 -----
  681. X  extern int character_generated;  /* don't save score until char gen finished */
  682. X  extern int highscore_fd;    /* High score file descriptor */
  683. X! extern bigint_t player_max_exp;    /* Max exp possible    */
  684. X  extern char norm_state[STATE_SIZE];    /* Contains seed #     */
  685. X  extern char randes_state[STATE_SIZE];
  686. X  extern int randes_seed;        /* For encoding colors */
  687. X***************
  688. X*** 32,38
  689. X  extern int closing_flag;    /* Used for closing   */
  690. X
  691. X  /* Bit testing array                        */
  692. X! extern unsigned int bit_array[32];
  693. X
  694. X  /*  Following are calculated from max dungeon sizes        */
  695. X  extern int max_panel_rows, max_panel_cols;
  696. X
  697. X--- 32,38 -----
  698. X  extern int closing_flag;    /* Used for closing   */
  699. X
  700. X  /* Bit testing array                        */
  701. X! extern bitset_t bit_array[32];
  702. X
  703. X  /*  Following are calculated from max dungeon sizes        */
  704. X  extern int max_panel_rows, max_panel_cols;
  705. X***************
  706. X*** 43,49
  707. X  extern int panel_col_prt, panel_row_prt;
  708. X
  709. X  /*  Following are all floor definitions                */
  710. X! extern cave_type cave[MAX_HEIGHT][MAX_WIDTH];
  711. X  extern cave_type blank_floor;
  712. X  extern floor_type dopen_floor;
  713. X  extern floor_type lopen_floor;
  714. X
  715. X--- 43,49 -----
  716. X  extern int panel_col_prt, panel_row_prt;
  717. X
  718. X  /*  Following are all floor definitions                */
  719. X! extern cave_type huge cave[MAX_HEIGHT][MAX_WIDTH];
  720. X  extern cave_type blank_floor;
  721. X  extern floor_type dopen_floor;
  722. X  extern floor_type lopen_floor;
  723. X***************
  724. X*** 59,65
  725. X  /* Following are player variables                */
  726. X  extern player_type py;
  727. X  extern btype player_title[MAX_CLASS][MAX_PLAYER_LEVEL];
  728. X! extern int player_exp[MAX_PLAYER_LEVEL];
  729. X  extern double acc_exp;                      /* Accumulator for fractional exp*/
  730. X  extern dtype bare_hands;
  731. X  extern int char_row;
  732. X
  733. X--- 59,65 -----
  734. X  /* Following are player variables                */
  735. X  extern player_type py;
  736. X  extern btype player_title[MAX_CLASS][MAX_PLAYER_LEVEL];
  737. X! extern bigint_t player_exp[MAX_PLAYER_LEVEL];
  738. X  extern double acc_exp;                      /* Accumulator for fractional exp*/
  739. X  extern dtype bare_hands;
  740. X  extern int char_row;
  741. XIndex: files.c
  742. XRCS file: RCS/files.c,v
  743. Xretrieving revision 1.1
  744. Xdiff -c3 -r1.1 files.c
  745. X*** /tmp/,RCSt1a02685    Mon Jan 18 10:28:44 1988
  746. X--- files.c    Mon Dec  7 16:54:33 1987
  747. X***************
  748. X*** 20,25
  749. X  void exit();
  750. X  #endif
  751. X
  752. X  /*
  753. X   *  init_scorefile
  754. X   *  Open the score file while we still have the setuid privileges.  Later
  755. X
  756. X--- 20,28 -----
  757. X  void exit();
  758. X  #endif
  759. X
  760. X+ #ifdef PASS1   /* first half */
  761. X+
  762. X+
  763. X  /*
  764. X   *  init_scorefile
  765. X   *  Open the score file while we still have the setuid privileges.  Later
  766. X***************
  767. X*** 308,315
  768. X            (void) strcpy(out_val, c_ptr->name);
  769. X            (void) strcat(out_val, "                              ");
  770. X            (void) fprintf(file1, "%d  %s     (%c)\n", i, out_val, c_ptr->cchar);
  771. X!           (void) fprintf(file1, "     Speed ==%d  Level     ==%d  Exp ==%d\n",
  772. X!               c_ptr->speed, c_ptr->level, (int)c_ptr->mexp);
  773. X            (void) fprintf(file1, "     AC    ==%d  Eye-sight ==%d  HD  ==%s\n",
  774. X                c_ptr->ac, c_ptr->aaf, c_ptr->hd);
  775. X            if (0x80000000 & c_ptr->cmove)
  776. X
  777. X--- 311,318 -----
  778. X            (void) strcpy(out_val, c_ptr->name);
  779. X            (void) strcat(out_val, "                              ");
  780. X            (void) fprintf(file1, "%d  %s     (%c)\n", i, out_val, c_ptr->cchar);
  781. X!           (void) fprintf(file1, "     Speed ==%d  Level     ==%d  Exp ==%ld\n",
  782. X!               c_ptr->speed, c_ptr->level, (long)c_ptr->mexp);
  783. X            (void) fprintf(file1, "     AC    ==%d  Eye-sight ==%d  HD  ==%s\n",
  784. X                c_ptr->ac, c_ptr->aaf, c_ptr->hd);
  785. X            if (0x80000000 & c_ptr->cmove)
  786. X***************
  787. X*** 610,615
  788. X      }
  789. X  }
  790. X
  791. X
  792. X  /* Print the character to a file or device        -RAK-     */
  793. X  file_character()
  794. X
  795. X--- 613,619 -----
  796. X      }
  797. X  }
  798. X
  799. X+ #else /* PASS1 */
  800. X
  801. X  /* Print the character to a file or device        -RAK-     */
  802. X  file_character()
  803. X***************
  804. X*** 669,675
  805. X        (void) fprintf(file1, "     Level      :%6d", (int)py.misc.lev);
  806. X        (void) fprintf(file1, "     Max Hit Points :%6d\n", py.misc.mhp);
  807. X        (void) fprintf(file1, "  + To Damage :%6d", py.misc.dis_td);
  808. X!       (void) fprintf(file1, "     Experience :%6d", py.misc.exp);
  809. X        (void) fprintf(file1, "     Cur Hit Points :%6d\n", (int) (py.misc.chp));
  810. X        (void) fprintf(file1, "  + To AC     :%6d", py.misc.dis_tac);
  811. X        (void) fprintf(file1, "     Gold       :%6d", py.misc.au);
  812. X
  813. X--- 673,679 -----
  814. X        (void) fprintf(file1, "     Level      :%6d", (int)py.misc.lev);
  815. X        (void) fprintf(file1, "     Max Hit Points :%6d\n", py.misc.mhp);
  816. X        (void) fprintf(file1, "  + To Damage :%6d", py.misc.dis_td);
  817. X!       (void) fprintf(file1, "     Experience :%6ld", (long)py.misc.exp);
  818. X        (void) fprintf(file1, "     Cur Hit Points :%6d\n", (int) (py.misc.chp));
  819. X        (void) fprintf(file1, "  + To AC     :%6d", py.misc.dis_tac);
  820. X        (void) fprintf(file1, "     Gold       :%6d", py.misc.au);
  821. X***************
  822. X*** 799,801
  823. X      }
  824. X      }
  825. X  }
  826. X
  827. X--- 803,806 -----
  828. X      }
  829. X      }
  830. X  }
  831. X+ #endif /* PASS1 */
  832. XIndex: misc1.c
  833. XRCS file: RCS/misc1.c,v
  834. Xretrieving revision 1.1
  835. Xdiff -c3 -r1.1 misc1.c
  836. X*** /tmp/,RCSt1a02690    Mon Jan 18 10:28:57 1988
  837. X--- misc1.c    Wed Dec  9 12:51:20 1987
  838. X***************
  839. X*** 179,186
  840. X  int mean;
  841. X  int stand;
  842. X  {
  843. X!   return ((int)((sqrt(-2.0*log(randint((int)9999999)/10000000.0))*
  844. X!          cos(6.283*(randint((int)9999999)/10000000.0))*stand) + mean));
  845. X  }
  846. X
  847. X
  848. X
  849. X--- 179,187 -----
  850. X  int mean;
  851. X  int stand;
  852. X  {
  853. X!   /* randint returns number < 2**16; used to divide by 10000000! --peterw 11/87 */
  854. X!   return ((int)((sqrt(-2.0*log(randint((int)49999)/50000.0))*
  855. X!          cos(6.283*(randint((int)49999)/50000.0))*stand) + mean));
  856. X  }
  857. X
  858. X
  859. X***************
  860. X*** 187,193
  861. X  /* Returns position of first set bit            -RAK-    */
  862. X  /*     and clears that bit */
  863. X  int bit_pos(test)
  864. X! unsigned int *test;
  865. X  {
  866. X    int i;
  867. X    int mask = 0x1;
  868. X
  869. X--- 188,194 -----
  870. X  /* Returns position of first set bit            -RAK-    */
  871. X  /*     and clears that bit */
  872. X  int bit_pos(test)
  873. X! bitset_t *test;
  874. X  {
  875. X    int i;
  876. X    int mask = 0x1;
  877. X***************
  878. X*** 192,198
  879. X    int i;
  880. X    int mask = 0x1;
  881. X
  882. X!   for (i = 0; i < sizeof(int)*8; i++) {
  883. X      if (*test & mask) {
  884. X        *test &= ~mask;
  885. X        return(i);
  886. X
  887. X--- 193,199 -----
  888. X    int i;
  889. X    int mask = 0x1;
  890. X
  891. X!   for (i = 0; i < sizeof(*test)*8; i++) {
  892. X      if (*test & mask) {
  893. X        *test &= ~mask;
  894. X        return(i);
  895. XIndex: misc2.c
  896. XRCS file: RCS/misc2.c,v
  897. Xretrieving revision 1.1
  898. Xdiff -c3 -r1.1 misc2.c
  899. X*** /tmp/,RCSt1a02695    Mon Jan 18 10:29:11 1988
  900. X--- misc2.c    Wed Dec  9 12:47:19 1987
  901. X***************
  902. X*** 453,458
  903. X  }
  904. X
  905. X
  906. X  /* Print number with header at given row, column     -RAK-    */
  907. X  prt_num(header, num, row, column)
  908. X  vtype header;
  909. X
  910. X--- 453,471 -----
  911. X  }
  912. X
  913. X
  914. X+ /* Print long number with header at given row, column     -RAK-    */
  915. X+ prt_lnum(header, num, row, column)
  916. X+ vtype header;
  917. X+ long num;
  918. X+ int row, column;
  919. X+ {
  920. X+   vtype out_val;
  921. X+
  922. X+   (void) sprintf(out_val, "%s%6ld ", header, num);
  923. X+   put_buffer(out_val, row, column);
  924. X+ }
  925. X+
  926. X+
  927. X  /* Print number with header at given row, column     -RAK-    */
  928. X  prt_num(header, num, row, column)
  929. X  vtype header;
  930. X***************
  931. X*** 923,929
  932. X    prt_stat("CON : ", py.stats.ccon,        10, stat_column);
  933. X    prt_stat("CHR : ", py.stats.cchr,        11, stat_column);
  934. X    prt_num( "LEV : ", (int)py.misc.lev,    13, stat_column);
  935. X!   prt_num( "EXP : ", py.misc.exp,         14, stat_column);
  936. X    prt_num( "MANA: ", (int)(py.misc.cmana), 15, stat_column);
  937. X    prt_num( "MHP : ", py.misc.mhp,         16, stat_column);
  938. X    prt_num( "CHP : ", (int)(py.misc.chp),  17, stat_column);
  939. X
  940. X--- 936,942 -----
  941. X    prt_stat("CON : ", py.stats.ccon,        10, stat_column);
  942. X    prt_stat("CHR : ", py.stats.cchr,        11, stat_column);
  943. X    prt_num( "LEV : ", (int)py.misc.lev,    13, stat_column);
  944. X!   prt_lnum( "EXP : ", (long)py.misc.exp,         14, stat_column);
  945. X    prt_num( "MANA: ", (int)(py.misc.cmana), 15, stat_column);
  946. X    prt_num( "MHP : ", py.misc.mhp,         16, stat_column);
  947. X    prt_num( "CHP : ", (int)(py.misc.chp),  17, stat_column);
  948. X***************
  949. X*** 1018,1024
  950. X  put_misc2()
  951. X  {
  952. X    prt_num("Level      : ", (int)py.misc.lev, 9, 30);
  953. X!   prt_num("Experience : ", py.misc.exp, 10, 30);
  954. X    prt_num("Gold       : ", py.misc.au, 11, 30);
  955. X    prt_num("Max Hit Points : ", py.misc.mhp, 9, 53);
  956. X    prt_num("Cur Hit Points : ", (int)py.misc.chp, 10, 53);
  957. X
  958. X--- 1031,1037 -----
  959. X  put_misc2()
  960. X  {
  961. X    prt_num("Level      : ", (int)py.misc.lev, 9, 30);
  962. X!   prt_lnum("Experience : ", (long)py.misc.exp, 10, 30);
  963. X    prt_num("Gold       : ", py.misc.au, 11, 30);
  964. X    prt_num("Max Hit Points : ", py.misc.mhp, 9, 53);
  965. X    prt_num("Cur Hit Points : ", (int)py.misc.chp, 10, 53);
  966. X***************
  967. X*** 1392,1398
  968. X  int learn_spell(redraw)
  969. X  int *redraw;
  970. X  {
  971. X!   unsigned int j;
  972. X    int i, k, sn, sc;
  973. X    int new_spells;
  974. X    unsigned int spell_flag;
  975. X
  976. X--- 1405,1411 -----
  977. X  int learn_spell(redraw)
  978. X  int *redraw;
  979. X  {
  980. X!   bitset_t j;
  981. X    int i, k, sn, sc;
  982. X    int new_spells;
  983. X    bitset_t spell_flag;
  984. X***************
  985. X*** 1395,1401
  986. X    unsigned int j;
  987. X    int i, k, sn, sc;
  988. X    int new_spells;
  989. X!   unsigned int spell_flag;
  990. X    spl_type spell;
  991. X    int learn;
  992. X    spell_type *s_ptr;
  993. X
  994. X--- 1408,1414 -----
  995. X    bitset_t j;
  996. X    int i, k, sn, sc;
  997. X    int new_spells;
  998. X!   bitset_t spell_flag;
  999. X    spl_type spell;
  1000. X    int learn;
  1001. X    spell_type *s_ptr;
  1002. X***************
  1003. X*** 1467,1473
  1004. X  {
  1005. X    int i, j, k, l, new_spell;
  1006. X    int test_array[32];
  1007. X!   unsigned int spell_flag;
  1008. X    int learn;
  1009. X    spell_type *s_ptr;
  1010. X
  1011. X
  1012. X--- 1480,1486 -----
  1013. X  {
  1014. X    int i, j, k, l, new_spell;
  1015. X    int test_array[32];
  1016. X!   bitset_t int spell_flag;
  1017. X    int learn;
  1018. X    spell_type *s_ptr;
  1019. X
  1020. X***************
  1021. X*** 1582,1588
  1022. X  /* Increases hit points and level            -RAK-    */
  1023. X  gain_level()
  1024. X  {
  1025. X!   int nhp, dif_exp, need_exp;
  1026. X    int redraw;
  1027. X    vtype out_val;
  1028. X    struct misc *p_ptr;
  1029. X
  1030. X--- 1595,1602 -----
  1031. X  /* Increases hit points and level            -RAK-    */
  1032. X  gain_level()
  1033. X  {
  1034. X!   bigint_t dif_exp, need_exp;
  1035. X!   int nhp;
  1036. X    int redraw;
  1037. X    vtype out_val;
  1038. X    struct misc *p_ptr;
  1039. X***************
  1040. X*** 1640,1646
  1041. X        if (p_ptr->exp > p_ptr->max_exp)
  1042. X      p_ptr->max_exp = p_ptr->exp;
  1043. X      }
  1044. X!   prt_num("", py.misc.exp, 14, stat_column+6);
  1045. X  }
  1046. X
  1047. X
  1048. X
  1049. X--- 1654,1660 -----
  1050. X        if (p_ptr->exp > p_ptr->max_exp)
  1051. X      p_ptr->max_exp = p_ptr->exp;
  1052. X      }
  1053. X!   prt_lnum("", (long)py.misc.exp, 14, stat_column+6);
  1054. X  }
  1055. X
  1056. X
  1057. X***************
  1058. X*** 1648,1653
  1059. X  insert_str(object_str, mtc_str, insert)
  1060. X  char *object_str, *mtc_str, *insert;
  1061. X  {
  1062. X    int mtc_len, obj_len;
  1063. X    int bound, pc, i;
  1064. X    char *temp_obj, *temp_mtc;
  1065. X
  1066. X--- 1662,1668 -----
  1067. X  insert_str(object_str, mtc_str, insert)
  1068. X  char *object_str, *mtc_str, *insert;
  1069. X  {
  1070. X+ #ifdef XENIX
  1071. X    int mtc_len, obj_len;
  1072. X    char *bound, *pc;
  1073. X    int i;
  1074. X***************
  1075. X*** 1649,1654
  1076. X  char *object_str, *mtc_str, *insert;
  1077. X  {
  1078. X    int mtc_len, obj_len;
  1079. X    int bound, pc, i;
  1080. X    char *temp_obj, *temp_mtc;
  1081. X    char out_val[80];
  1082. X
  1083. X--- 1664,1698 -----
  1084. X  {
  1085. X  #ifdef XENIX
  1086. X    int mtc_len, obj_len;
  1087. X+   char *bound, *pc;
  1088. X+   int i;
  1089. X+   char *temp_obj, *temp_mtc;
  1090. X+   char out_val[80];
  1091. X+
  1092. X+   mtc_len = strlen(mtc_str);
  1093. X+   obj_len = strlen(object_str);
  1094. X+   bound = object_str + obj_len - mtc_len;
  1095. X+   for (pc = object_str; pc <= bound; pc++)
  1096. X+     {
  1097. X+       temp_obj = pc;
  1098. X+       temp_mtc = mtc_str;
  1099. X+       for (i = 0; i < mtc_len; i++)
  1100. X+     if (*temp_obj++ != *temp_mtc++)
  1101. X+       break;
  1102. X+       if (i == mtc_len)
  1103. X+     break;
  1104. X+     }
  1105. X+
  1106. X+   if (pc <= bound)
  1107. X+     {
  1108. X+       (void) strncpy(out_val, object_str, pc-object_str);
  1109. X+       out_val[pc-object_str] = '\0';
  1110. X+       (void) strcat(out_val, insert);
  1111. X+       (void) strcat(out_val, pc+mtc_len);
  1112. X+       (void) strcpy(object_str, out_val);
  1113. X+     }
  1114. X+ #else
  1115. X+   int mtc_len, obj_len;
  1116. X    int bound, pc, i;
  1117. X    char *temp_obj, *temp_mtc;
  1118. X    char out_val[80];
  1119. X***************
  1120. X*** 1675,1680
  1121. X        (void) strcat(out_val, (char *)(pc+mtc_len));
  1122. X        (void) strcpy(object_str, out_val);
  1123. X      }
  1124. X  }
  1125. X
  1126. X
  1127. X
  1128. X--- 1719,1725 -----
  1129. X        (void) strcat(out_val, (char *)(pc+mtc_len));
  1130. X        (void) strcpy(object_str, out_val);
  1131. X      }
  1132. X+ #endif XENIX
  1133. X  }
  1134. X
  1135. X
  1136. X***************
  1137. X*** 1742,1747
  1138. X        inkey(&x);
  1139. X        switch(x)
  1140. X      {
  1141. X      case 13:
  1142. X        break;
  1143. X      default:
  1144. X
  1145. X--- 1787,1796 -----
  1146. X        inkey(&x);
  1147. X        switch(x)
  1148. X      {
  1149. X+ #ifdef BUGGY_CURSES
  1150. X+     case 10:
  1151. X+       x = 13;
  1152. X+ #endif BUGGY_CURSES
  1153. X      case 13:
  1154. X        break;
  1155. X      default:
  1156. XIndex: moria1.c
  1157. XRCS file: RCS/moria1.c,v
  1158. Xretrieving revision 1.1
  1159. Xdiff -c3 -r1.1 moria1.c
  1160. X*** /tmp/,RCSt1a02700    Mon Jan 18 10:29:33 1988
  1161. X--- moria1.c    Wed Dec  9 11:48:00 1987
  1162. X***************
  1163. X*** 68,74
  1164. X  treasure_type tobj;
  1165. X  int factor;
  1166. X  {
  1167. X!   unsigned int item_flags;
  1168. X    int i, old_dis_ac;
  1169. X    struct flags *p_ptr;
  1170. X    struct misc *m_ptr;
  1171. X
  1172. X--- 68,74 -----
  1173. X  treasure_type tobj;
  1174. X  int factor;
  1175. X  {
  1176. X!   bitset_t item_flags;
  1177. X    int i, old_dis_ac;
  1178. X    struct flags *p_ptr;
  1179. X    struct misc *m_ptr;
  1180. XIndex: moria2.c
  1181. XRCS file: RCS/moria2.c,v
  1182. Xretrieving revision 1.1
  1183. Xdiff -c3 -r1.1 moria2.c
  1184. X*** /tmp/,RCSt1a02705    Mon Jan 18 10:29:49 1988
  1185. X--- moria2.c    Wed Dec  9 11:47:16 1987
  1186. X***************
  1187. X*** 261,267
  1188. X  int *sn, *sc;
  1189. X  int *redraw;
  1190. X  {
  1191. X!   unsigned int j;
  1192. X    int i, k;
  1193. X    spl_type spell;
  1194. X    int cast;
  1195. X
  1196. X--- 261,267 -----
  1197. X  int *sn, *sc;
  1198. X  int *redraw;
  1199. X  {
  1200. X!   bitset_t j;
  1201. X    int i, k;
  1202. X    spl_type spell;
  1203. X    int cast;
  1204. X***************
  1205. X*** 327,333
  1206. X  /* Examine a Book                    -RAK-    */
  1207. X  examine_book()
  1208. X  {
  1209. X!   unsigned int j;
  1210. X    int i, k, item_val;
  1211. X    int redraw, flag;
  1212. X    char dummy;
  1213. X
  1214. X--- 327,333 -----
  1215. X  /* Examine a Book                    -RAK-    */
  1216. X  examine_book()
  1217. X  {
  1218. X!   bitset_t j;
  1219. X    int i, k, item_val;
  1220. X    int redraw, flag;
  1221. X    char dummy;
  1222. X***************
  1223. X*** 670,676
  1224. X  /* based on flags set in the main creature record                */
  1225. X  monster_death(y, x, flags)
  1226. X  int y, x;
  1227. X! unsigned int flags;
  1228. X  {
  1229. X    int i;
  1230. X
  1231. X
  1232. X--- 670,676 -----
  1233. X  /* based on flags set in the main creature record                */
  1234. X  monster_death(y, x, flags)
  1235. X  int y, x;
  1236. X! bitset_t flags;
  1237. X  {
  1238. X    int i;
  1239. X
  1240. XIndex: potions.c
  1241. XRCS file: RCS/potions.c,v
  1242. Xretrieving revision 1.1
  1243. Xdiff -c3 -r1.1 potions.c
  1244. X*** /tmp/,RCSt1a02710    Mon Jan 18 10:30:05 1988
  1245. X--- potions.c    Wed Dec  9 11:44:23 1987
  1246. X***************
  1247. X*** 6,13
  1248. X  /* Potions for the quaffing                -RAK-    */
  1249. X  quaff()
  1250. X  {
  1251. X!   unsigned int i;
  1252. X!   int j, k, l, m, item_val;
  1253. X    int redraw, ident;
  1254. X    treasure_type *i_ptr;
  1255. X    struct misc *m_ptr;
  1256. X
  1257. X--- 6,14 -----
  1258. X  /* Potions for the quaffing                -RAK-    */
  1259. X  quaff()
  1260. X  {
  1261. X!   bitset_t i;
  1262. X!   bigint_t l, m;
  1263. X!   int j, k, item_val;
  1264. X    int redraw, ident;
  1265. X    treasure_type *i_ptr;
  1266. X    struct misc *m_ptr;
  1267. X***************
  1268. X*** 244,250
  1269. X                msg_print("You feel your memories fade...");
  1270. X                msg_print("");
  1271. X                l = (py.misc.exp/5.0);
  1272. X!               lose_exp(randint(l)+l);
  1273. X                ident = TRUE;
  1274. X                break;
  1275. X              case 34:
  1276. X
  1277. X--- 245,251 -----
  1278. X                msg_print("You feel your memories fade...");
  1279. X                msg_print("");
  1280. X                l = (py.misc.exp/5.0);
  1281. X!               lose_exp((bigint_t)randint((int)l)+l);
  1282. X                ident = TRUE;
  1283. X                break;
  1284. X              case 34:
  1285. X***************
  1286. X*** 347,353
  1287. X            if (i_ptr->flags != 0)
  1288. X          {
  1289. X            m_ptr = &py.misc;
  1290. X!           m_ptr->exp += (int)(i_ptr->level/m_ptr->lev + 0.5);
  1291. X            prt_experience();
  1292. X          }
  1293. X            add_food(i_ptr->p1);
  1294. X
  1295. X--- 348,354 -----
  1296. X            if (i_ptr->flags != 0)
  1297. X          {
  1298. X            m_ptr = &py.misc;
  1299. X!           m_ptr->exp += (bigint_t)(i_ptr->level/m_ptr->lev + 0.5);
  1300. X            prt_experience();
  1301. X          }
  1302. X            add_food(i_ptr->p1);
  1303. XIndex: scrolls.c
  1304. XRCS file: RCS/scrolls.c,v
  1305. Xretrieving revision 1.1
  1306. Xdiff -c3 -r1.1 scrolls.c
  1307. X*** /tmp/,RCSt1a02715    Mon Jan 18 10:30:14 1988
  1308. X--- scrolls.c    Wed Dec  9 11:43:34 1987
  1309. X***************
  1310. X*** 14,20
  1311. X  /* Scrolls for the reading                -RAK-    */
  1312. X  read_scroll()
  1313. X  {
  1314. X!   unsigned int i;
  1315. X    int j, k, l, item_val;
  1316. X    int y, x;
  1317. X    int tmp[5];
  1318. X
  1319. X--- 14,20 -----
  1320. X  /* Scrolls for the reading                -RAK-    */
  1321. X  read_scroll()
  1322. X  {
  1323. X!   bitset_t i;
  1324. X    int j, k, l, item_val;
  1325. X    int y, x;
  1326. X    int tmp[5];
  1327. XIndex: spells.c
  1328. XRCS file: RCS/spells.c,v
  1329. Xretrieving revision 1.1
  1330. Xdiff -c3 -r1.1 spells.c
  1331. X*** /tmp/,RCSt1a02720    Mon Jan 18 10:30:26 1988
  1332. X--- spells.c    Wed Dec  9 11:43:08 1987
  1333. X***************
  1334. X*** 649,655
  1335. X  /* Return flags for given type area affect        -RAK-    */
  1336. X  get_flags(typ, weapon_type, harm_type, destroy)
  1337. X  int typ;
  1338. X! int *weapon_type, *harm_type;
  1339. X  int (**destroy)();
  1340. X  {
  1341. X    int set_null(), set_fire_destroy(), set_frost_destroy();
  1342. X
  1343. X--- 649,656 -----
  1344. X  /* Return flags for given type area affect        -RAK-    */
  1345. X  get_flags(typ, weapon_type, harm_type, destroy)
  1346. X  int typ;
  1347. X! bitset_t *weapon_type;
  1348. X! int *harm_type;
  1349. X  int (**destroy)();
  1350. X  {
  1351. X    int set_null(), set_fire_destroy(), set_frost_destroy();
  1352. X***************
  1353. X*** 701,707
  1354. X  ctype bolt_typ;
  1355. X  {
  1356. X    int i, oldy, oldx, dist;
  1357. X!   int weapon_type, harm_type;
  1358. X    int flag;
  1359. X    int (*dummy)();
  1360. X    cave_type *c_ptr;
  1361. X
  1362. X--- 702,709 -----
  1363. X  ctype bolt_typ;
  1364. X  {
  1365. X    int i, oldy, oldx, dist;
  1366. X!   bitset_t weapon_type;
  1367. X!   int harm_type;
  1368. X    int flag;
  1369. X    int (*dummy)();
  1370. X    cave_type *c_ptr;
  1371. X***************
  1372. X*** 782,788
  1373. X    int i, j, k;
  1374. X    int dam, max_dis, thit, tkill;
  1375. X    int oldy, oldx, dist;
  1376. X!   int weapon_type, harm_type;
  1377. X    int flag;
  1378. X    int (*destroy)();
  1379. X    cave_type *c_ptr;
  1380. X
  1381. X--- 784,791 -----
  1382. X    int i, j, k;
  1383. X    int dam, max_dis, thit, tkill;
  1384. X    int oldy, oldx, dist;
  1385. X!   bitset_t weapon_type;
  1386. X!   int harm_type;
  1387. X    int flag;
  1388. X    int (*destroy)();
  1389. X    cave_type *c_ptr;
  1390. X***************
  1391. X*** 830,836
  1392. X              {
  1393. X                c_ptr = &cave[i][j];
  1394. X                if (c_ptr->tptr != 0)
  1395. X!                 if (destroy(t_list[c_ptr->tptr].tval))
  1396. X                    (void) delete_object(i, j);
  1397. X                if (c_ptr->fopen)
  1398. X                  {
  1399. X
  1400. X--- 833,839 -----
  1401. X              {
  1402. X                c_ptr = &cave[i][j];
  1403. X                if (c_ptr->tptr != 0)
  1404. X!                 if ((*destroy)(t_list[c_ptr->tptr].tval))
  1405. X                    (void) delete_object(i, j);
  1406. X                if (c_ptr->fopen)
  1407. X                  {
  1408. X***************
  1409. X*** 920,926
  1410. X  {
  1411. X    int i, j;
  1412. X    int dam, max_dis;
  1413. X!   int weapon_type, harm_type;
  1414. X    int (*destroy)();
  1415. X    cave_type *c_ptr;
  1416. X    monster_type *m_ptr;
  1417. X
  1418. X--- 923,930 -----
  1419. X  {
  1420. X    int i, j;
  1421. X    int dam, max_dis;
  1422. X!   bitset_t weapon_type;
  1423. X!   int harm_type;
  1424. X    int (*destroy)();
  1425. X    cave_type *c_ptr;
  1426. X    monster_type *m_ptr;
  1427. X***************
  1428. X*** 935,941
  1429. X        {
  1430. X          c_ptr = &cave[i][j];
  1431. X          if (c_ptr->tptr != 0)
  1432. X!           if (destroy(t_list[c_ptr->tptr].tval))
  1433. X          (void) delete_object(i, j);
  1434. X          if (c_ptr->fopen)
  1435. X            {
  1436. X
  1437. X--- 939,945 -----
  1438. X        {
  1439. X          c_ptr = &cave[i][j];
  1440. X          if (c_ptr->tptr != 0)
  1441. X!           if ((*destroy)(t_list[c_ptr->tptr].tval))
  1442. X          (void) delete_object(i, j);
  1443. X          if (c_ptr->fopen)
  1444. X            {
  1445. X***************
  1446. X*** 2229,2235
  1447. X
  1448. X  /* Lose experience                    -RAK-    */
  1449. X  lose_exp(amount)
  1450. X! int amount;
  1451. X  {
  1452. X    int i, j;
  1453. X    int av_hp, lose_hp;
  1454. X
  1455. X--- 2233,2239 -----
  1456. X
  1457. X  /* Lose experience                    -RAK-    */
  1458. X  lose_exp(amount)
  1459. X! bigint_t amount;
  1460. X  {
  1461. X    int i, j;
  1462. X    int av_hp, lose_hp;
  1463. XIndex: staffs.c
  1464. XRCS file: RCS/staffs.c,v
  1465. Xretrieving revision 1.1
  1466. Xdiff -c3 -r1.1 staffs.c
  1467. X*** /tmp/,RCSt1a02725    Mon Jan 18 10:30:49 1988
  1468. X--- staffs.c    Wed Dec  9 11:54:00 1987
  1469. X***************
  1470. X*** 6,12
  1471. X  /* Use a staff...                    -RAK-    */
  1472. X  use()
  1473. X  {
  1474. X!   unsigned int i;
  1475. X    int j, k, item_val, chance;
  1476. X    int y, x;
  1477. X    int redraw, ident;
  1478. X
  1479. X--- 6,12 -----
  1480. X  /* Use a staff...                    -RAK-    */
  1481. X  use()
  1482. X  {
  1483. X!   bitset_t i;
  1484. X    int j, k, item_val, chance;
  1485. X    int y, x;
  1486. X    int redraw, ident;
  1487. XIndex: store2.c
  1488. XRCS file: RCS/store2.c,v
  1489. Xretrieving revision 1.1
  1490. Xdiff -c3 -r1.1 store2.c
  1491. X*** /tmp/,RCSt1a02730    Mon Jan 18 10:30:56 1988
  1492. X--- store2.c    Sun Dec  6 14:54:57 1987
  1493. X***************
  1494. X*** 948,954
  1495. X        (void) sprintf(out_val, "Selling %s (%c)", tmp_str, item_val+97);
  1496. X        msg_print(out_val);
  1497. X        msg_print(" ");
  1498. X!       if ((store_buy[store_num])(inventory[INVEN_MAX].tval))
  1499. X      if (store_check_num(store_num))
  1500. X        switch(sell_haggle(store_num, &price, inventory[INVEN_MAX]))
  1501. X          {
  1502. X
  1503. X--- 948,954 -----
  1504. X        (void) sprintf(out_val, "Selling %s (%c)", tmp_str, item_val+97);
  1505. X        msg_print(out_val);
  1506. X        msg_print(" ");
  1507. X!       if ((*store_buy[store_num])(inventory[INVEN_MAX].tval))
  1508. X      if (store_check_num(store_num))
  1509. X        switch(sell_haggle(store_num, &price, inventory[INVEN_MAX]))
  1510. X          {
  1511. XIndex: types.h
  1512. XRCS file: RCS/types.h,v
  1513. Xretrieving revision 1.1
  1514. Xdiff -c3 -r1.1 types.h
  1515. X*** /tmp/,RCSt1a02735    Mon Jan 18 10:31:08 1988
  1516. X--- types.h    Wed Dec  9 11:44:00 1987
  1517. X***************
  1518. X*** 1,3
  1519. X  typedef unsigned char byteint;
  1520. X  #ifdef NO_SIGNED_CHARS
  1521. X  typedef short bytlint;
  1522. X
  1523. X--- 1,5 -----
  1524. X+ typedef unsigned long bitset_t;
  1525. X+ typedef unsigned long bigint_t;
  1526. X  typedef unsigned char byteint;
  1527. X  #ifdef NO_SIGNED_CHARS
  1528. X  typedef short bytlint;
  1529. X***************
  1530. X*** 19,26
  1531. X  typedef struct creature_type
  1532. X  {
  1533. X    ctype name;           /* Descrip of creature    */
  1534. X!   unsigned int cmove;    /* Bit field        */
  1535. X!   unsigned int spells;  /* Creature spells    */
  1536. X    wordint cdefense;    /* Bit field        */
  1537. X    worlint sleep;    /* Inactive counter    */
  1538. X    wordint mexp;     /* Exp value for kill    */
  1539. X
  1540. X--- 21,28 -----
  1541. X  typedef struct creature_type
  1542. X  {
  1543. X    ctype name;           /* Descrip of creature    */
  1544. X!   bitset_t cmove;    /* Bit field        */
  1545. X!   bitset_t spells;  /* Creature spells    */
  1546. X    wordint cdefense;    /* Bit field        */
  1547. X    worlint sleep;    /* Inactive counter    */
  1548. X    wordint mexp;     /* Exp value for kill    */
  1549. X***************
  1550. X*** 54,60
  1551. X    ttype name;            /* Object name        */
  1552. X    byteint tval;            /* Category number    */
  1553. X    char tchar;        /* Character representation*/
  1554. X!   unsigned int flags;    /* Special flags        */
  1555. X    int p1;            /* Misc. use variable    */
  1556. X    int cost;            /* Cost of item        */
  1557. X    int subval;            /* Sub-category number    */
  1558. X
  1559. X--- 56,62 -----
  1560. X    ttype name;            /* Object name        */
  1561. X    byteint tval;            /* Category number    */
  1562. X    char tchar;        /* Character representation*/
  1563. X!   bitset_t flags;    /* Special flags        */
  1564. X    int p1;            /* Misc. use variable    */
  1565. X    int cost;            /* Cost of item        */
  1566. X    int subval;            /* Sub-category number    */
  1567. X***************
  1568. X*** 77,84
  1569. X        vtype sex;    /* Sex of character    */
  1570. X        vtype title;    /* Character's title    */
  1571. X        vtype tclass;    /* Character's class    */
  1572. X!       int max_exp;    /* Max experience*/
  1573. X!       int exp;            /* Cur experience    */
  1574. X        int au;            /* Gold        */
  1575. X        wordint age;    /* Characters age*/
  1576. X        wordint ht;    /* Height    */
  1577. X
  1578. X--- 79,86 -----
  1579. X        vtype sex;    /* Sex of character    */
  1580. X        vtype title;    /* Character's title    */
  1581. X        vtype tclass;    /* Character's class    */
  1582. X!       bigint_t max_exp;    /* Max experience*/
  1583. X!       bigint_t exp;            /* Cur experience    */
  1584. X        int au;            /* Gold        */
  1585. X        wordint age;    /* Characters age*/
  1586. X        wordint ht;    /* Height    */
  1587. X***************
  1588. X*** 128,134
  1589. X      } stats;
  1590. X    struct flags
  1591. X      {
  1592. X!       unsigned int status;    /* Status of player    */
  1593. X        int rest;                    /* Rest counter          */
  1594. X        int blind;            /* Blindness counter   */
  1595. X        int paralysis;            /* Paralysis counter   */
  1596. X
  1597. X--- 130,136 -----
  1598. X      } stats;
  1599. X    struct flags
  1600. X      {
  1601. X!       bitset_t status;    /* Status of player    */
  1602. X        int rest;                    /* Rest counter          */
  1603. X        int blind;            /* Blindness counter   */
  1604. X        int paralysis;            /* Paralysis counter   */
  1605. X***************
  1606. X*** 221,227
  1607. X    bytlint bsav;         /* Race base for saving throw    */
  1608. X    bytlint bhitdie;      /* Base hit points for race    */
  1609. X    bytlint infra;        /* See infra-red        */
  1610. X!   unsigned int tclass;  /* Bit field for class types    */
  1611. X  } race_type;
  1612. X
  1613. X  typedef struct class_type
  1614. X
  1615. X--- 223,229 -----
  1616. X    bytlint bsav;         /* Race base for saving throw    */
  1617. X    bytlint bhitdie;      /* Base hit points for race    */
  1618. X    bytlint infra;        /* See infra-red        */
  1619. X!   bitset_t rtclass;  /* Bit field for class types    */
  1620. X  } race_type;
  1621. X
  1622. X  typedef struct class_type
  1623. X***************
  1624. X*** 270,275
  1625. X    int fm;          /* used for hidden objects */
  1626. X    int pl;
  1627. X    int tl;
  1628. X  } cave_type;
  1629. X
  1630. X  typedef struct owner_type
  1631. X
  1632. X--- 272,279 -----
  1633. X    int fm;          /* used for hidden objects */
  1634. X    int pl;
  1635. X    int tl;
  1636. X+   int __pad1;    /* pad to 16 bytes */
  1637. X+   int __pad2;    /* pad to 16 bytes */
  1638. X  } cave_type;
  1639. X
  1640. X  typedef struct owner_type
  1641. XIndex: variables.c
  1642. XRCS file: RCS/variables.c,v
  1643. Xretrieving revision 1.1
  1644. Xdiff -c3 -r1.1 variables.c
  1645. X*** /tmp/,RCSt1a02740    Mon Jan 18 10:31:18 1988
  1646. X--- variables.c    Wed Dec  9 11:44:15 1987
  1647. X***************
  1648. X*** 3,9
  1649. X
  1650. X  int character_generated = 0;    /* don't save score until char gen finished */
  1651. X  int highscore_fd;            /* File descriptor to high score file */
  1652. X! int player_max_exp;            /* Max exp possible    */
  1653. X  char norm_state[STATE_SIZE];    /* normal seed */
  1654. X  char randes_state[STATE_SIZE];    /* For encoding colors */
  1655. X  int randes_seed;                /* for restarting randes_state */
  1656. X
  1657. X--- 3,9 -----
  1658. X
  1659. X  int character_generated = 0;    /* don't save score until char gen finished */
  1660. X  int highscore_fd;            /* File descriptor to high score file */
  1661. X! bigint_t player_max_exp;            /* Max exp possible    */
  1662. X  char norm_state[STATE_SIZE];    /* normal seed */
  1663. X  char randes_state[STATE_SIZE];    /* For encoding colors */
  1664. X  int randes_seed;                /* for restarting randes_state */
  1665. X***************
  1666. X*** 48,54
  1667. X  int closing_flag = 0;             /* Used for closing   */
  1668. X
  1669. X  /* Bit testing array                        */
  1670. X! unsigned int bit_array[32] = {0x00000001, 0x00000002, 0x00000004, 0x00000008,
  1671. X                  0x00000010, 0x00000020, 0x00000040, 0x00000080,
  1672. X                  0x00000100, 0x00000200, 0x00000400, 0x00000800,
  1673. X                  0x00001000, 0x00002000, 0x00004000, 0x00008000,
  1674. X
  1675. X--- 48,54 -----
  1676. X  int closing_flag = 0;             /* Used for closing   */
  1677. X
  1678. X  /* Bit testing array                        */
  1679. X! bitset_t bit_array[32] = {0x00000001, 0x00000002, 0x00000004, 0x00000008,
  1680. X                  0x00000010, 0x00000020, 0x00000040, 0x00000080,
  1681. X                  0x00000100, 0x00000200, 0x00000400, 0x00000800,
  1682. X                  0x00001000, 0x00002000, 0x00004000, 0x00008000,
  1683. X***************
  1684. X*** 66,72
  1685. X  int panel_col_prt,panel_row_prt;
  1686. X
  1687. X  /*  Following are all floor definitions                */
  1688. X! cave_type cave[MAX_HEIGHT][MAX_WIDTH];
  1689. X  /* Values for floor types                    */
  1690. X  /* if fval is more than 4 bits then the save file routines must be changed */
  1691. X  cave_type blank_floor = { 0, 0, 0, FALSE, FALSE, FALSE, FALSE};
  1692. X
  1693. X--- 66,72 -----
  1694. X  int panel_col_prt,panel_row_prt;
  1695. X
  1696. X  /*  Following are all floor definitions                */
  1697. X! cave_type huge cave[MAX_HEIGHT][MAX_WIDTH];
  1698. X  /* Values for floor types                    */
  1699. X  /* if fval is more than 4 bits then the save file routines must be changed */
  1700. X  cave_type blank_floor = { 0, 0, 0, FALSE, FALSE, FALSE, FALSE};
  1701. X***************
  1702. X*** 155,161
  1703. X  };
  1704. X
  1705. X  /* Base experience levels, may be adjusted up for race and/or class*/
  1706. X! int player_exp[MAX_PLAYER_LEVEL] = {
  1707. X       10,     25,     45,     70,    100,    140,    200,    280,    380,   500,
  1708. X      650,    850,   1100,   1400,   1800,   2300,   2900,   3600,   4400,  5400,
  1709. X     6800,   8400,  10200,  12500,  17500,  25000,  35000,  50000,  75000,100000,
  1710. X
  1711. X--- 155,161 -----
  1712. X  };
  1713. X
  1714. X  /* Base experience levels, may be adjusted up for race and/or class*/
  1715. X! bigint_t player_exp[MAX_PLAYER_LEVEL] = {
  1716. X       10,     25,     45,     70,    100,    140,    200,    280,    380,   500,
  1717. X      650,    850,   1100,   1400,   1800,   2300,   2900,   3600,   4400,  5400,
  1718. X     6800,   8400,  10200,  12500,  17500,  25000,  35000,  50000,  75000,100000,
  1719. XIndex: wands.c
  1720. XRCS file: RCS/wands.c,v
  1721. Xretrieving revision 1.1
  1722. Xdiff -c3 -r1.1 wands.c
  1723. X*** /tmp/,RCSt1a02745    Mon Jan 18 10:31:30 1988
  1724. X--- wands.c    Wed Dec  9 11:54:30 1987
  1725. X***************
  1726. X*** 6,12
  1727. X  /* Wands for the aiming...                */
  1728. X  aim()
  1729. X  {
  1730. X!   unsigned int i;
  1731. X    int j, k, l, chance;
  1732. X    int dir, item_val;
  1733. X    int dumy, y_dumy, x_dumy;
  1734. X
  1735. X--- 6,12 -----
  1736. X  /* Wands for the aiming...                */
  1737. X  aim()
  1738. X  {
  1739. X!   bitset_t i;
  1740. X    int j, k, l, chance;
  1741. X    int dir, item_val;
  1742. X    int dumy, y_dumy, x_dumy;
  1743. XIndex: wizard.c
  1744. XRCS file: RCS/wizard.c,v
  1745. Xretrieving revision 1.1
  1746. Xdiff -c3 -r1.1 wizard.c
  1747. X*** /tmp/,RCSt1a02750    Mon Jan 18 10:31:38 1988
  1748. X--- wizard.c    Sun Dec  6 14:55:08 1987
  1749. X***************
  1750. X*** 13,18
  1751. X  char *sprintf();
  1752. X  #endif
  1753. X
  1754. X
  1755. X  /* Print Moria credits                    -RAK-    */
  1756. X  game_version()
  1757. X
  1758. X--- 13,19 -----
  1759. X  char *sprintf();
  1760. X  #endif
  1761. X
  1762. X+ #ifdef PASS1 /* First pass */
  1763. X
  1764. X  /* Print Moria credits                    -RAK-    */
  1765. X  game_version()
  1766. X***************
  1767. X*** 239,244
  1768. X    py_bonuses(blank_treasure, 0);
  1769. X  }
  1770. X
  1771. X
  1772. X  /* Wizard routine for creating objects            -RAK-    */
  1773. X  wizard_create()
  1774. X
  1775. X--- 240,246 -----
  1776. X    py_bonuses(blank_treasure, 0);
  1777. X  }
  1778. X
  1779. X+ #else /* PASS1 */
  1780. X
  1781. X  /* Wizard routine for creating objects            -RAK-    */
  1782. X  wizard_create()
  1783. X***************
  1784. X*** 375,377
  1785. X        }
  1786. X    inventory[INVEN_MAX] = blank_treasure;
  1787. X  }
  1788. X
  1789. X--- 377,380 -----
  1790. X        }
  1791. X    inventory[INVEN_MAX] = blank_treasure;
  1792. X  }
  1793. X+ #endif /* PASS1 */
  1794. END_OF_diffs.xenix
  1795. if test 35406 -ne `wc -c <diffs.xenix`; then
  1796.     echo shar: \"diffs.xenix\" unpacked with wrong size!
  1797. fi
  1798. # end of overwriting check
  1799. fi
  1800. echo shar: End of shell archive.
  1801. exit 0
  1802.  
  1803.  
  1804.